ComponentOne Bitmap for WPF
C1.WPF.Bitmap.4.5.2 Assembly / C1.WPF.Bitmap Namespace / C1Bitmap Class / Import Method / Import(Byte[],Int32,Int32,Int32,PixelFormat) Method
The source byte array with pixel buffer.
The stride (bytes per row) of the image data in the source byte array.
The width of the image, in pixels.
The height of the image, in pixels.
The pixel format of the image.

In This Topic
    Import(Byte[],Int32,Int32,Int32,PixelFormat) Method
    In This Topic
    Loads the image from a byte array containing the pixels buffer with specified stride (bytes per row of pixels).
    Syntax
    'Declaration
     
    Public Overloads Sub Import( _
       ByVal bytes() As Byte, _
       ByVal stride As Integer, _
       ByVal width As Integer, _
       ByVal height As Integer, _
       ByVal pixelFormat As PixelFormat _
    ) 
    public void Import( 
       byte[] bytes,
       int stride,
       int width,
       int height,
       PixelFormat pixelFormat
    )

    Parameters

    bytes
    The source byte array with pixel buffer.
    stride
    The stride (bytes per row) of the image data in the source byte array.
    width
    The width of the image, in pixels.
    height
    The height of the image, in pixels.
    pixelFormat
    The pixel format of the image.
    See Also